/*
 * @Description:
 * @Author: Zzt
 * @Date: 2022-11-10 16:51:31
 * @LastEditTime: 2022-12-07 11:56:11
 */
import { SET_ARCHIVES, SET_TERM, SET_SECRET } from '../constants';
import { delItemByIdArray, insertItem, updateItemById } from '@/utils/list';

export const BasicStatisticsReducer = (state, action) => {
  switch (action.type) {
    case SET_ARCHIVES:
      return { ...state, archivesList: action.data };
    case SET_TERM:
      return { ...state, termList: action.data };
    case SET_SECRET:
      return { ...state, secretList: action.data };
    default:
      console.log('untouched', action);
      return state;
  }
};
